package com.gaohe.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("classes")
public class Classes {
    private Long id;
    private Long teacher_id;
    private String name;
    private String tname;
    private String tags;
    private Integer status;
    private String description;
    private String room_name;
    private double price;
    private LocalDateTime start_time;
    private LocalDateTime end_time;
//    上限人数
    private Integer pmax;
//    已选人数
    private Integer pnum;
    private String imgs;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;

//    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;

}
